﻿using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
using projetoFinal.App_Start;
using projetoFinal.Persistência;
using System.Data.Entity;


namespace projetoFinal
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            Database.SetInitializer<Contexto>(null);

            AreaRegistration.RegisterAllAreas();

            //WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
    }
}